import { getRecordList as getRecordListApi } from "@/api";

export const getRecordList = (data) => {
  return getRecordListApi({
    ...data,
    pageNumber: data.page,
    page: undefined,
  }).then(([err, res]) => {
    const _res = {
      ...res?.data.pages || {},
      options: res?.data.options || [],
    };
    return [err, { data: _res }];
  });
};
